package com.nbsaas.boot.merchant.rest.convert;

import com.nbsaas.boot.merchant.data.entity.MerchantDeposit;
import com.nbsaas.boot.merchant.api.domain.simple.MerchantDepositSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 商家保证金-列表对象转换器
*/

public class MerchantDepositSimpleConvert implements Converter<MerchantDepositSimple, MerchantDeposit> {




@Override
public MerchantDepositSimple convert(MerchantDeposit source) {
    MerchantDepositSimple result = new MerchantDepositSimple();

                result.setAmount(source.getAmount());
                result.setDepositNo(source.getDepositNo());
                result.setRefundTime(source.getRefundTime());
                result.setRefundStatus(source.getRefundStatus());
                result.setRemark(source.getRemark());
                result.setAddDate(source.getAddDate());
                result.setMerchantId(source.getMerchantId());
                result.setPaymentMethod(source.getPaymentMethod());
                result.setId(source.getId());
                result.setPaymentTime(source.getPaymentTime());
                result.setPaymentStatus(source.getPaymentStatus());
                result.setRefundAmount(source.getRefundAmount());
                result.setLastDate(source.getLastDate());


    return result;
}

}